package com.mallcloud.mall.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mallcloud.mall.mall.api.entity.MallOrderCouponModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * 券订单
 */
@Mapper
public interface AppOrderCouponMapper extends BaseMapper<MallOrderCouponModel> {

	@Update("UPDATE SYS_ORDER_COUPON SET STATUS = #{status}, EXCEPTIONS = #{errMsg}, VERSION = VERSION + 1 WHERE ORDER_NO = #{orderNo}")
	void updateTryFail(String orderNo, Integer status, String strToOracle);

}
